import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

import Vant from 'vant'
import 'vant/lib/index.css'
import router from './router'

import 'amfe-flexible'
import './utils/rem'

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()

import Swiper from './components/swiper.vue'
import Search from './components/search.vue'

createApp(App).component("swiper", Swiper).component("search", Search).use(router).use(Vant).use(pinia.use(piniaPluginPersistedstate)).mount('#app')
